Skip to content

public Vote::getRankingAsString

Read it at the source

Description

php
public Vote->getRankingAsString ( [?CondorcetPHP\Condorcet\Election $context = null , bool $displayWeight = true] ): string

Get the current ranking as a string format. Optionally with an election context.

Parameters

context: ?CondorcetPHP\Condorcet\Election

An election already linked to the Vote.

displayWeight: bool

Include or not the weight symbol and value.

Return value

(string) String like 'A>D=C>B


Released under the MIT License.